#define LCD_DATA  P0

sbit LCD_RS = P4^2;
sbit LCD_RW = P4^3;
sbit LCD_EN = P4^4;
sbit LCD_BL = P1^2;
sbit LCD_D7 = P0^7;


extern unsigned char print_buf[17];


void LCD_init(void);
void LCD_Write_Data(unsigned char dat);
void LCD_Write_Com(unsigned char com);
void LCD_Write_String(unsigned char x,unsigned char y,unsigned char *s) ;

void disp_hex(unsigned char d,unsigned char *pbuf);
void disp_DEC(signed char d,unsigned char *pbuf);